package com.sundae.smarthomedemo.Activitys;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.sundae.smarthomedemo.Beans.DeviceSQLBean;

/**
 * Created by daijiyuan on 2017/6/5.
 * 邮箱 948820549@qq.com
 *
 * @Sundae
 */

public class BaseActivity extends AppCompatActivity {

    public static DeviceSQLBean selectDevice = null;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        MyActivityManager.addActivity(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        MyActivityManager.removeActivity(this);
    }
}
